package start.demo01.enum7_11;

public enum Gender {
    MALE,FEMALE;
    public static Gender getGenderByOrdinal(int ordinal){
        return ordinal==0?MALE:FEMALE;
    }
}
